import { UnityEngine } from "csharp";

const cube = UnityEngine.GameObject.Find("Cube");

setInterval(()=>{
    let x = getX();
    let y = 0;
    let z = 0;
    const time = UnityEngine.Time.deltaTime;
    cube.transform.Rotate(x*time,y*time,z*time);
});
function getX():number{
    return 300;
}